//
//  ViewController.swift
//  MVVM_BaseViewController_Demo
//
//  Created by 钟志远 on 2018/1/3.
//  Copyright © 2018年 alyadan. All rights reserved.
//

import UIKit
import MVVM_BaseViewController

class ViewControllerB: MVVM_BaseViewController{
    
    
    override var currentModel: VCModelB {
        return vcModel.value as! VCModelB
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
}

class VCModelB: MVVM_BaseVCModel {
    override func viewController(vcIndex: Int) -> MVVM_BaseViewController? {
        return ViewControllerB()
    }
    
    override func setupModel() {
        viewControllerTitle.value = "testB"
    }
    
    override func bindDataModel() {
        print("bindDataModel")
    }
}


